// App routes configuration
import { RouteObject } from 'react-router-dom';
import { lazy } from 'react';

// Lazy load pages
const Login = lazy(() => import('../../features/auth/pages/Login'));
const Dashboard = lazy(() => import('../../features/dashboard/pages/Dashboard'));
const MarketDashboard = lazy(() => import('../../features/market/pages/MarketDashboard'));
const Trading = lazy(() => import('../../features/trading/pages/Trading'));
const Strategy = lazy(() => import('../../features/strategy/pages/Strategy'));
const Risk = lazy(() => import('../../features/risk/pages/Risk'));
const Data = lazy(() => import('../../features/data/pages/Data'));
const Settings = lazy(() => import('../../features/settings/pages/Settings'));

export const routes: RouteObject[] = [
  {
    path: '/login',
    element: <Login />,
  },
  {
    path: '/',
    element: <Dashboard />,
  },
  {
    path: '/market',
    element: <MarketDashboard />,
  },
  {
    path: '/trading',
    element: <Trading />,
  },
  {
    path: '/strategy',
    element: <Strategy />,
  },
  {
    path: '/risk',
    element: <Risk />,
  },
  {
    path: '/data',
    element: <Data />,
  },
  {
    path: '/settings',
    element: <Settings />,
  },
];

